home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Technology Seed / August 1998 ADC Seed CD.toast / Mac OS 8.5b2 / allegro-b2-pseudo-SDK / AIncludes / Script.a < prev    next >
Encoding:
Text File  |  1998-07-17  |  50.7 KB  |  1,288 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Script.a
  3. ;
  4. ;    Contains:    Script Manager interfaces
  5. ;
  6. ;    Version:    Technology:    System 7.5+
  7. ;                Release:    Allego Seed, Use with 3.1 Universal Interfaces
  8. ;
  9. ;    Copyright:    © 1986-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__SCRIPT__') = 'UNDEFINED' THEN
  19. __SCRIPT__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.     IF &TYPE('__INTLRESOURCES__') = 'UNDEFINED' THEN
  28.     include 'IntlResources.a'
  29.     ENDIF
  30.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  31.     include 'Events.a'
  32.     ENDIF
  33.  
  34. ;  Meta script codes:
  35.  
  36. smSystemScript                    EQU        -1                    ; designates system script.
  37. smCurrentScript                    EQU        -2                    ; designates current font script.
  38. smAllScripts                    EQU        -3                    ; designates any script
  39.  
  40. ;   Script codes:
  41. ;   These specify a Mac OS encoding that is related to a FOND ID range.
  42. ;   Some of the encodings have several variants (e.g. for different localized systems)
  43. ;    which all share the same script code.
  44. ;   Not all of these script codes are currently supported by Apple software.
  45. ;   Notes:
  46. ;   - Script code 0 (smRoman) is also used (instead of smGreek) for the Greek encoding
  47. ;     in the Greek localized system.
  48. ;   - Script code 28 (smEthiopic) is also used for the Inuit encoding in the Inuktitut
  49. ;     system.
  50.  
  51.  
  52.  
  53. smRoman                            EQU        0
  54. smJapanese                        EQU        1
  55. smTradChinese                    EQU        2                    ; Traditional Chinese
  56. smKorean                        EQU        3
  57. smArabic                        EQU        4
  58. smHebrew                        EQU        5
  59. smGreek                            EQU        6
  60. smCyrillic                        EQU        7
  61. smRSymbol                        EQU        8                    ; Right-left symbol
  62. smDevanagari                    EQU        9
  63. smGurmukhi                        EQU        10
  64. smGujarati                        EQU        11
  65. smOriya                            EQU        12
  66. smBengali                        EQU        13
  67. smTamil                            EQU        14
  68. smTelugu                        EQU        15
  69. smKannada                        EQU        16                    ; Kannada/Kanarese
  70. smMalayalam                        EQU        17
  71. smSinhalese                        EQU        18
  72. smBurmese                        EQU        19
  73. smKhmer                            EQU        20                    ; Khmer/Cambodian
  74. smThai                            EQU        21
  75. smLao                            EQU        22
  76. smGeorgian                        EQU        23
  77. smArmenian                        EQU        24
  78. smSimpChinese                    EQU        25                    ; Simplified Chinese
  79. smTibetan                        EQU        26
  80. smMongolian                        EQU        27
  81. smEthiopic                        EQU        28
  82. smGeez                            EQU        28                    ; Synonym for smEthiopic
  83. smCentralEuroRoman                EQU        29                    ; For Czech, Slovak, Polish, Hungarian, Baltic langs
  84. smVietnamese                    EQU        30
  85. smExtArabic                        EQU        31                    ; extended Arabic
  86. smUninterp                        EQU        32                    ; uninterpreted symbols, e.g. palette symbols
  87. ;  Obsolete script code names (kept for backward compatibility):
  88.  
  89. smChinese                        EQU        2                    ; (Use smTradChinese or smSimpChinese)
  90. smRussian                        EQU        7                    ; Use smCyrillic
  91.                                                             ; smMaldivian = 25: deleted, no code for Maldivian
  92. smLaotian                        EQU        22                    ; Use smLao                                                            
  93. smAmharic                        EQU        28                    ; Use smEthiopic or smGeez
  94. smSlavic                        EQU        29                    ; Use smCentralEuroRoman
  95. smEastEurRoman                    EQU        29                    ; Use smCentralEuroRoman
  96. smSindhi                        EQU        31                    ; Use smExtArabic
  97. smKlingon                        EQU        32
  98.  
  99. ;   Language codes:
  100. ;   These specify a language implemented using a particular Mac OS encoding.
  101. ;   Not all of these language codes are currently supported by Apple software.
  102.  
  103.  
  104.  
  105. langEnglish                        EQU        0                    ; smRoman script
  106. langFrench                        EQU        1                    ; smRoman script
  107. langGerman                        EQU        2                    ; smRoman script
  108. langItalian                        EQU        3                    ; smRoman script
  109. langDutch                        EQU        4                    ; smRoman script
  110. langSwedish                        EQU        5                    ; smRoman script
  111. langSpanish                        EQU        6                    ; smRoman script
  112. langDanish                        EQU        7                    ; smRoman script
  113. langPortuguese                    EQU        8                    ; smRoman script
  114. langNorwegian                    EQU        9                    ; smRoman script
  115. langHebrew                        EQU        10                    ; smHebrew script
  116. langJapanese                    EQU        11                    ; smJapanese script
  117. langArabic                        EQU        12                    ; smArabic script
  118. langFinnish                        EQU        13                    ; smRoman script
  119. langGreek                        EQU        14                    ; Greek script using smRoman script code
  120. langIcelandic                    EQU        15                    ; modified smRoman/Icelandic script
  121. langMaltese                        EQU        16                    ; Roman script
  122. langTurkish                        EQU        17                    ; modified smRoman/Turkish script
  123. langCroatian                    EQU        18                    ; modified smRoman/Croatian script
  124. langTradChinese                    EQU        19                    ; Chinese (Mandarin) in traditional characters
  125. langUrdu                        EQU        20                    ; smArabic script
  126. langHindi                        EQU        21                    ; smDevanagari script
  127. langThai                        EQU        22                    ; smThai script
  128. langKorean                        EQU        23                    ; smKorean script
  129.  
  130. langLithuanian                    EQU        24                    ; smCentralEuroRoman script
  131. langPolish                        EQU        25                    ; smCentralEuroRoman script
  132. langHungarian                    EQU        26                    ; smCentralEuroRoman script
  133. langEstonian                    EQU        27                    ; smCentralEuroRoman script
  134. langLatvian                        EQU        28                    ; smCentralEuroRoman script
  135. langSami                        EQU        29                    ; language of the Sami people of N. Scandinavia                        
  136. langFaroese                        EQU        30                    ; modified smRoman/Icelandic script                                    
  137. langFarsi                        EQU        31                    ; modified smArabic/Farsi script
  138. langPersian                        EQU        31                    ; Synonym for langFarsi
  139. langRussian                        EQU        32                    ; smCyrillic script
  140. langSimpChinese                    EQU        33                    ; Chinese (Mandarin) in simplified characters
  141. langFlemish                        EQU        34                    ; smRoman script
  142. langIrishGaelic                    EQU        35                    ; smRoman or modified smRoman/Celtic script (without dot above)        
  143. langAlbanian                    EQU        36                    ; smRoman script
  144. langRomanian                    EQU        37                    ; modified smRoman/Romanian script
  145. langCzech                        EQU        38                    ; smCentralEuroRoman script
  146. langSlovak                        EQU        39                    ; smCentralEuroRoman script
  147. langSlovenian                    EQU        40                    ; modified smRoman/Croatian script
  148. langYiddish                        EQU        41                    ; smHebrew script
  149. langSerbian                        EQU        42                    ; smCyrillic script
  150. langMacedonian                    EQU        43                    ; smCyrillic script
  151. langBulgarian                    EQU        44                    ; smCyrillic script
  152. langUkrainian                    EQU        45                    ; modified smCyrillic/Ukrainian script
  153. langByelorussian                EQU        46                    ; smCyrillic script
  154. langBelorussian                    EQU        46                    ; Synonym for langByelorussian                                            
  155.  
  156. langUzbek                        EQU        47                    ; Cyrillic script
  157. langKazakh                        EQU        48                    ; Cyrillic script
  158. langAzerbaijani                    EQU        49                    ; Azerbaijani in Cyrillic script
  159. langAzerbaijanAr                EQU        50                    ; Azerbaijani in Arabic script
  160. langArmenian                    EQU        51                    ; smArmenian script
  161. langGeorgian                    EQU        52                    ; smGeorgian script
  162. langMoldavian                    EQU        53                    ; smCyrillic script
  163. langKirghiz                        EQU        54                    ; Cyrillic script
  164. langTajiki                        EQU        55                    ; Cyrillic script
  165. langTurkmen                        EQU        56                    ; Cyrillic script
  166. langMongolian                    EQU        57                    ; Mongolian in smMongolian script
  167. langMongolianCyr                EQU        58                    ; Mongolian in Cyrillic script
  168. langPashto                        EQU        59                    ; Arabic script
  169. langKurdish                        EQU        60                    ; smArabic script
  170. langKashmiri                    EQU        61                    ; Arabic script
  171. langSindhi                        EQU        62                    ; Arabic script
  172. langTibetan                        EQU        63                    ; smTibetan script
  173. langNepali                        EQU        64                    ; smDevanagari script
  174. langSanskrit                    EQU        65                    ; smDevanagari script
  175. langMarathi                        EQU        66                    ; smDevanagari script
  176. langBengali                        EQU        67                    ; smBengali script
  177. langAssamese                    EQU        68                    ; smBengali script
  178. langGujarati                    EQU        69                    ; smGujarati script
  179. langPunjabi                        EQU        70                    ; smGurmukhi script
  180.  
  181. langOriya                        EQU        71                    ; smOriya script
  182. langMalayalam                    EQU        72                    ; smMalayalam script
  183. langKannada                        EQU        73                    ; smKannada script
  184. langTamil                        EQU        74                    ; smTamil script
  185. langTelugu                        EQU        75                    ; smTelugu script
  186. langSinhalese                    EQU        76                    ; smSinhalese script
  187. langBurmese                        EQU        77                    ; smBurmese script
  188. langKhmer                        EQU        78                    ; smKhmer script
  189. langLao                            EQU        79                    ; smLao script
  190. langVietnamese                    EQU        80                    ; smVietnamese script
  191. langIndonesian                    EQU        81                    ; smRoman script
  192. langTagalog                        EQU        82                    ; Roman script
  193. langMalayRoman                    EQU        83                    ; Malay in smRoman script
  194. langMalayArabic                    EQU        84                    ; Malay in Arabic script
  195. langAmharic                        EQU        85                    ; smEthiopic script
  196. langTigrinya                    EQU        86                    ; smEthiopic script
  197. langOromo                        EQU        87                    ; smEthiopic script
  198. langSomali                        EQU        88                    ; smRoman script
  199. langSwahili                        EQU        89                    ; smRoman script
  200. langKinyarwanda                    EQU        90                    ; smRoman script
  201. langRuanda                        EQU        90                    ; synonym for langKinyarwanda
  202. langRundi                        EQU        91                    ; smRoman script
  203. langNyanja                        EQU        92                    ; smRoman script
  204. langChewa                        EQU        92                    ; synonym for langNyanja
  205. langMalagasy                    EQU        93                    ; smRoman script
  206. langEsperanto                    EQU        94                    ; Roman script
  207.  
  208. langWelsh                        EQU        128                    ; modified smRoman/Celtic script
  209. langBasque                        EQU        129                    ; smRoman script
  210. langCatalan                        EQU        130                    ; smRoman script
  211. langLatin                        EQU        131                    ; smRoman script
  212. langQuechua                        EQU        132                    ; smRoman script
  213. langGuarani                        EQU        133                    ; smRoman script
  214. langAymara                        EQU        134                    ; smRoman script
  215. langTatar                        EQU        135                    ; Cyrillic script
  216. langUighur                        EQU        136                    ; Arabic script
  217. langDzongkha                    EQU        137                    ; (lang of Bhutan) smTibetan script
  218. langJavaneseRom                    EQU        138                    ; Javanese in smRoman script
  219. langSundaneseRom                EQU        139                    ; Sundanese in smRoman script
  220. langGalician                    EQU        140                    ; smRoman script
  221. langAfrikaans                    EQU        141                    ; smRoman script                                                        
  222.  
  223. langBreton                        EQU        142                    ; smRoman or modified smRoman/Celtic script                            
  224. langInuktitut                    EQU        143                    ; Inuit script using smEthiopic script code                            
  225. langScottishGaelic                EQU        144                    ; smRoman or modified smRoman/Celtic script                            
  226. langManxGaelic                    EQU        145                    ; smRoman or modified smRoman/Celtic script                            
  227. langIrishGaelicScript            EQU        146                    ; modified smRoman/Gaelic script (using dot above)                        
  228. langTongan                        EQU        147                    ; smRoman script                                                        
  229. langGreekPoly                    EQU        148                    ; smGreek script                                                        
  230. langGreenlandic                    EQU        149                    ; smRoman script                                                        
  231.  
  232. langUnspecified                    EQU        32767                ; Special code for use in resources (such as 'itlm')                    
  233.  
  234. ;   Obsolete language code names (kept for backward compatibility):
  235. ;   Misspelled, ambiguous, misleading, considered pejorative, archaic, etc.
  236.  
  237.  
  238.  
  239. langPortugese                    EQU        8                    ; Use langPortuguese
  240. langMalta                        EQU        16                    ; Use langMaltese
  241. langYugoslavian                    EQU        18                    ; (use langCroatian, langSerbian, etc.)
  242. langChinese                        EQU        19                    ; (use langTradChinese or langSimpChinese)
  243. langLettish                        EQU        28                    ; Use langLatvian                                                        
  244. langLapponian                    EQU        29                    ; Use langSami
  245. langLappish                        EQU        29                    ; Use langSami
  246. langSaamisk                        EQU        29                    ; Use langSami                                                            
  247. langFaeroese                    EQU        30                    ; Use langFaroese                                                        
  248. langIrish                        EQU        35                    ; Use langIrishGaelic                                                    
  249. langGalla                        EQU        87                    ; Use langOromo                                                        
  250. langAfricaans                    EQU        141                    ; Use langAfrikaans                                                    
  251.  
  252. ;   Region codes:
  253. ;   These typically specify a combination of a language code and a particular region.
  254. ;   Some of these numeric values are reserved just for extra resource IDs associated
  255. ;   with certain regions; these are not actual region codes, and are noted in the comments.
  256. ;   Not all of the region codes are currently supported by Apple software.
  257. ;   When relevant, the following list also provides:
  258. ;   - The Apple part number (P/N) code for software localized for the specified region.
  259. ;   - The two-letter ISO language and country codes (from ISO 639 and ISO 3166). The
  260. ;     language code (lowercase) is first, then '_', then the country code (uppercase).
  261.  
  262.  
  263.  
  264.  
  265.                                                             ; P/N    ISO    codes    comments
  266. verUS                            EQU        0                    ;        en_US
  267. verFrance                        EQU        1                    ; F    fr_FR
  268. verBritain                        EQU        2                    ; B    en_GB
  269. verGermany                        EQU        3                    ; D    de_DE
  270. verItaly                        EQU        4                    ; T    it_IT
  271. verNetherlands                    EQU        5                    ; N    nl_NL
  272. verFlemish                        EQU        6                    ; FN    nl_BE        Flemish (Dutch) for Belgium                            
  273. verSweden                        EQU        7                    ; S    sv_SE
  274. verSpain                        EQU        8                    ; E    es_ES        Spanish for Spain
  275. verDenmark                        EQU        9                    ; DK    da_DK
  276. verPortugal                        EQU        10                    ; PO    pt_PT        Portuguese for Portugal
  277. verFrCanada                        EQU        11                    ; C    fr_CA        French for Canada
  278. verNorway                        EQU        12                    ; H    no_NO        Bokmål
  279. verIsrael                        EQU        13                    ; HB    iw_IL        Hebrew
  280. verJapan                        EQU        14                    ; J    ja_JP
  281. verAustralia                    EQU        15                    ; X    en_AU        English for Australia
  282. verArabic                        EQU        16                    ; AB    ar            Arabic for N Africa, Arabian peninsula, Levant
  283. verFinland                        EQU        17                    ; K    fi_FI
  284. verFrSwiss                        EQU        18                    ; SF    fr_CH        French Swiss
  285. verGrSwiss                        EQU        19                    ; SD    de_CH        German Swiss
  286. verGreece                        EQU        20                    ; GR    el_GR        Monotonic Greek (modern)
  287. verIceland                        EQU        21                    ; IS    is_IS
  288. verMalta                        EQU        22                    ; MA    mt_MT
  289. verCyprus                        EQU        23                    ; CY      _CY        Greek or Turkish language? Checking...
  290. verTurkey                        EQU        24                    ; TU    tr_TR
  291. verYugoCroatian                    EQU        25                    ; YU                Croatian for Yugoslavia; now use verCroatia (68)
  292.  
  293. verNetherlandsComma                EQU        26                    ;                    ID for KCHR resource - Dutch
  294. verBelgiumLuxPoint                EQU        27                    ;                    ID for KCHR resource - Belgium
  295. verCanadaComma                    EQU        28                    ;                    ID for KCHR resource - Canadian ISO
  296. verCanadaPoint                    EQU        29                    ;                    ID for KCHR resource - Canadian; now unused
  297. vervariantPortugal                EQU        30                    ;                    ID for resource; now unused
  298. vervariantNorway                EQU        31                    ;                    ID for resource; now unused
  299. vervariantDenmark                EQU        32                    ;                    ID for KCHR resource - Danish Mac Plus
  300.  
  301. verIndiaHindi                    EQU        33                    ;        hi_IN        Hindi for India
  302. verPakistanUrdu                    EQU        34                    ; UR    ur_PK        Urdu for Pakistan                                    
  303. verTurkishModified                EQU        35
  304. verItalianSwiss                    EQU        36                    ; ST    it_CH        Italian Swiss
  305. verInternational                EQU        37                    ; Z    en            English for international use                        
  306.                                                             ;                    38 is unassigned
  307. verRomania                        EQU        39                    ; RO    ro_RO
  308. verGreecePoly                    EQU        40                    ;                    Polytonic Greek (classical)                            
  309. verLithuania                    EQU        41                    ; LT    lt_LT
  310. verPoland                        EQU        42                    ; PL    pl_PL
  311. verHungary                        EQU        43                    ; MG    hu_HU
  312. verEstonia                        EQU        44                    ; EE    et_EE
  313. verLatvia                        EQU        45                    ; LV    lv_LV
  314. verSami                            EQU        46                    ;        se                                                                
  315. verFaroeIsl                        EQU        47                    ; FA    fo_FO                                                            
  316. verIran                            EQU        48                    ; PS    fa_IR        Persian/Farsi
  317. verRussia                        EQU        49                    ; RS    ru_RU        Russian
  318. verIreland                        EQU        50                    ; GA    ga_IE        Irish Gaelic for Ireland (without dot above)        
  319. verKorea                        EQU        51                    ; KH    ko_KR
  320. verChina                        EQU        52                    ; CH    zh_CN        Simplified Chinese
  321. verTaiwan                        EQU        53                    ; TA    zh_TW        Traditional Chinese
  322. verThailand                        EQU        54                    ; TH    th_TH
  323. verScriptGeneric                EQU        55                    ; SS                Generic script system (no language or script)        
  324. verCzech                        EQU        56                    ; CZ    cs_CZ
  325. verSlovak                        EQU        57                    ; SL    sk_SK
  326. verFarEastGeneric                EQU        58                    ; FE                Generic Far East system (no language or script)        
  327. verMagyar                        EQU        59                    ;                    Unused; see verHungary
  328. verBengali                        EQU        60                    ;        bn            Bangladesh or India
  329. verByeloRussian                    EQU        61                    ; BY    be_BY
  330.  
  331. verUkraine                        EQU        62                    ; UA    uk_UA
  332.                                                             ;                    63 is unassigned
  333. verGreeceAlt                    EQU        64                    ;                    unused                                                
  334. verSerbian                        EQU        65                    ; SR    sr_YU, sh_YU                                                    
  335. verSlovenian                    EQU        66                    ; SV    sl_SI                                                            
  336. verMacedonian                    EQU        67                    ; MD    mk_MK                                                            
  337. verCroatia                        EQU        68                    ; CR    hr_HR, sh_HR
  338.                                                             ;                    69 is unassigned
  339.                                                             ;                    70 is unassigned
  340. verBrazil                        EQU        71                    ; BR    pt_BR        Portuguese for Brazil
  341. verBulgaria                        EQU        72                    ; BG    bg_BG
  342. verCatalonia                    EQU        73                    ; CA    ca_ES        Catalan for Spain
  343. verMultilingual                    EQU        74                    ; ZM                (no language or script)
  344. verScottishGaelic                EQU        75                    ; GD    gd
  345. verManxGaelic                    EQU        76                    ; GV    gv            Isle of Man
  346. verBreton                        EQU        77                    ; BZ    br
  347. verNunavut                        EQU        78                    ; IU    iu_CA        Inuktitut for Canada
  348. verWelsh                        EQU        79                    ; CU    cy
  349.                                                             ;                    80 is ID for KCHR resource - Canadian CSA
  350. verIrishGaelicScript            EQU        81                    ; GS    ga_IE        Irish Gaelic for Ireland (using dot above)
  351. verEngCanada                    EQU        82                    ; V    en_CA        English for Canada
  352. verBhutan                        EQU        83                    ; BH    dz_BT        Dzongkha for Bhutan
  353. verArmenian                        EQU        84                    ; HY    hy_AM
  354. verGeorgian                        EQU        85                    ; KR    ka_GE
  355. verSpLatinAmerica                EQU        86                    ; LA    es            Spanish for Latin America
  356.                                                             ;                    87 is ID for KCHR resource - Spanish ISO
  357. verTonga                        EQU        88                    ; TS    to_TO
  358.                                                             ;                    89 is ID for KCHR resource - Polish Modified
  359.                                                             ;                    90 is ID for KCHR resource - Catalan ISO
  360. verFrenchUniversal                EQU        91                    ;        fr            French generic
  361. verAustria                        EQU        92                    ; AU    de_AT        German for Austria
  362.                                                             ; Y                93 is unused alternate for verSpLatinAmerica
  363. verGujarati                        EQU        94                    ;        gu_IN
  364. verPunjabi                        EQU        95                    ;        pa            Pakistan or India
  365. verIndiaUrdu                    EQU        96                    ;        ur_IN        Urdu for India
  366. verVietnam                        EQU        97                    ;        vi_VN
  367.  
  368. verFrBelgium                    EQU        98                    ; BF    fr_BE        French for Belgium                                    
  369. verUzbek                        EQU        99                    ; BD    uz_UZ                                                            
  370. verSingapore                    EQU        100                    ; SG                                                                    
  371. verNynorsk                        EQU        101                    ; NY      _NO        Norwegian Nynorsk                                    
  372. verAfrikaans                    EQU        102                    ; AK    af_ZA                                                            
  373. verEsperanto                    EQU        103                    ;        eo                                                                
  374. verMarathi                        EQU        104                    ;        mr_IN                                                            
  375. verTibetan                        EQU        105                    ;        bo                                                                
  376. verNepal                        EQU        106                    ;        ne_NP                                                            
  377. verGreenland                    EQU        107                    ;        kl                                                                
  378.  
  379. ;   Other extra resource IDs assigned in the same number space:
  380. ;    179 is ID for KCHR & itl_ resources - Cornish
  381. ;    581 is ID for KCHR resource - Irish Gaelic script alternate
  382. ;    582 is ID for KCHR resource - Ogham
  383. ;    779 is ID for KCHR resource - Welsh alternate
  384. ;   1111 is ID for KCHR resource - French numeric
  385.  
  386.  
  387.  
  388.  
  389. ;   Obsolete region code names (kept for backward compatibility):
  390. ;   Misspelled or alternate form, ambiguous, misleading, considered pejorative, archaic, etc.
  391.  
  392.  
  393.  
  394. verFrBelgiumLux                    EQU        6                    ; Incorrect; 6 is Flemish, not French, for Belgium; use verFlemish        
  395. verBelgiumLux                    EQU        6                    ; Use verFlemish
  396. verArabia                        EQU        16                    ; Use verArabic
  397. verYugoslavia                    EQU        25                    ; Use verYugoCroatian (same number, now unused), or newer verCroatia
  398. verIndia                        EQU        33                    ; Use verIndiaHindi
  399. verPakistan                        EQU        34                    ; Use verPakistanUrdu                                                    
  400. verRumania                        EQU        39                    ; Alternate for verRomania                                                
  401. verGreekAncient                    EQU        40                    ; Use verGreecePoly                                                    
  402. verLapland                        EQU        46                    ; Use verSami                                                            
  403. verFaeroeIsl                    EQU        47                    ; Use verFaroeIsl                                                        
  404. verGenericFE                    EQU        58                    ; Use verFarEastGeneric                                                
  405. verBelarus                        EQU        61                    ; Alternate for verByelorussian                                        
  406. verUkrania                        EQU        62                    ; Use verUkraine
  407. verAlternateGr                    EQU        64                    ; Use verGreeceAlt                                                        
  408. verSerbia                        EQU        65                    ; Alternate for verSerbian                                                
  409. verSlovenia                        EQU        66                    ; Alternate for verSlovenian                                            
  410. verMacedonia                    EQU        67                    ; Alternate for verMacedonian                                            
  411. verBrittany                        EQU        77                    ; Alternate for verBreton                                                
  412. verWales                        EQU        79                    ; Alternate for verWelsh                                                
  413. verArmenia                        EQU        84                    ; Alternate for verArmenian                                            
  414. verGeorgia                        EQU        85                    ; Alternate for verGeorgian                                            
  415. verAustriaGerman                EQU        92                    ; Use verAustria                                                        
  416. verTibet                        EQU        105                    ; Use verTibetan                                                        
  417.  
  418. minCountry                        EQU        0
  419. maxCountry                        EQU        107
  420.  
  421.                                                             ; Calendar Codes 
  422. calGregorian                    EQU        0
  423. calArabicCivil                    EQU        1
  424. calArabicLunar                    EQU        2
  425. calJapanese                        EQU        3
  426. calJewish                        EQU        4
  427. calCoptic                        EQU        5
  428. calPersian                        EQU        6
  429.  
  430.                                                             ; Integer Format Codes 
  431. intWestern                        EQU        0
  432. intArabic                        EQU        1
  433. intRoman                        EQU        2
  434. intJapanese                        EQU        3
  435. intEuropean                        EQU        4
  436. intOutputMask                    EQU        $8000
  437.  
  438.                                                             ; CharByte byte types 
  439. smSingleByte                    EQU        0
  440. smFirstByte                        EQU        -1
  441. smLastByte                        EQU        1
  442. smMiddleByte                    EQU        2
  443.  
  444.                                                             ; CharType field masks 
  445. smcTypeMask                        EQU        $000F
  446. smcReserved                        EQU        $00F0
  447. smcClassMask                    EQU        $0F00
  448. smcOrientationMask                EQU        $1000                ;two-byte script glyph orientation
  449. smcRightMask                    EQU        $2000
  450. smcUpperMask                    EQU        $4000
  451. smcDoubleMask                    EQU        $8000
  452.  
  453.                                                             ; Basic CharType character types 
  454. smCharPunct                        EQU        $0000
  455. smCharAscii                        EQU        $0001
  456. smCharEuro                        EQU        $0007
  457. smCharExtAscii                    EQU        $0007                ; More correct synonym for smCharEuro 
  458.                                                             ; Additional CharType character types for script systems 
  459. smCharKatakana                    EQU        $0002                ;Japanese Katakana
  460. smCharHiragana                    EQU        $0003                ;Japanese Hiragana
  461. smCharIdeographic                EQU        $0004                ;Hanzi, Kanji, Hanja
  462. smCharTwoByteGreek                EQU        $0005                ;2-byte Greek in Far East systems
  463. smCharTwoByteRussian            EQU        $0006                ;2-byte Cyrillic in Far East systems
  464. smCharBidirect                    EQU        $0008                ;Arabic/Hebrew
  465. smCharContextualLR                EQU        $0009                ;Contextual left-right: Thai, Indic scripts
  466. smCharNonContextualLR            EQU        $000A                ;Non-contextual left-right: Cyrillic, Greek
  467. smCharHangul                    EQU        $000C                ;Korean Hangul
  468. smCharJamo                        EQU        $000D                ;Korean Jamo
  469. smCharBopomofo                    EQU        $000E                ;Chinese Bopomofo
  470. smCharGanaKana                    EQU        $000F                ;Shared for Japanese Hiragana & Katakana
  471.                                                             ; old names for some of above, for backward compatibility 
  472. smCharFISKana                    EQU        $0002                ;Katakana
  473. smCharFISGana                    EQU        $0003                ;Hiragana
  474. smCharFISIdeo                    EQU        $0004                ;Hanzi, Kanji, Hanja
  475.  
  476. smCharFISGreek                    EQU        $0005                ;2-byte Greek in Far East systems
  477. smCharFISRussian                EQU        $0006                ;2-byte Cyrillic in Far East systems
  478.                                                             ; CharType classes for punctuation (smCharPunct) 
  479. smPunctNormal                    EQU        $0000
  480. smPunctNumber                    EQU        $0100
  481. smPunctSymbol                    EQU        $0200
  482. smPunctBlank                    EQU        $0300                ; Additional CharType classes for punctuation in two-byte systems 
  483. smPunctRepeat                    EQU        $0400                ; repeat marker 
  484. smPunctGraphic                    EQU        $0500                ; line graphics 
  485.                                                             ; CharType Katakana and Hiragana classes for two-byte systems 
  486. smKanaSmall                        EQU        $0100                ;small kana character
  487. smKanaHardOK                    EQU        $0200                ;can have dakuten
  488. smKanaSoftOK                    EQU        $0300                ;can have dakuten or han-dakuten
  489.                                                             ; CharType Ideographic classes for two-byte systems 
  490. smIdeographicLevel1                EQU        $0000                ;level 1 char
  491. smIdeographicLevel2                EQU        $0100                ;level 2 char
  492. smIdeographicUser                EQU        $0200                ;user char
  493.                                                             ; old names for above, for backward compatibility 
  494. smFISClassLvl1                    EQU        $0000                ;level 1 char
  495. smFISClassLvl2                    EQU        $0100                ;level 2 char
  496. smFISClassUser                    EQU        $0200                ;user char
  497.                                                             ; CharType Jamo classes for Korean systems 
  498. smJamoJaeum                        EQU        $0000                ;simple consonant char
  499. smJamoBogJaeum                    EQU        $0100                ;complex consonant char
  500. smJamoMoeum                        EQU        $0200                ;simple vowel char
  501. smJamoBogMoeum                    EQU        $0300                ;complex vowel char
  502.  
  503.                                                             ; CharType glyph orientation for two-byte systems 
  504. smCharHorizontal                EQU        $0000                ; horizontal character form, or for both 
  505. smCharVertical                    EQU        $1000                ; vertical character form 
  506.                                                             ; CharType directions 
  507. smCharLeft                        EQU        $0000
  508. smCharRight                        EQU        $2000                ; CharType case modifers 
  509. smCharLower                        EQU        $0000
  510. smCharUpper                        EQU        $4000                ; CharType character size modifiers (1 or multiple bytes). 
  511. smChar1byte                        EQU        $0000
  512. smChar2byte                        EQU        $8000
  513.  
  514.                                                             ; TransliterateText target types for Roman 
  515. smTransAscii                    EQU        0                    ;convert to ASCII
  516. smTransNative                    EQU        1                    ;convert to font script
  517. smTransCase                        EQU        $FE                    ;convert case for all text
  518. smTransSystem                    EQU        $FF                    ;convert to system script
  519.                                                             ; TransliterateText target types for two-byte scripts 
  520. smTransAscii1                    EQU        2                    ;1-byte Roman
  521. smTransAscii2                    EQU        3                    ;2-byte Roman
  522. smTransKana1                    EQU        4                    ;1-byte Japanese Katakana
  523. smTransKana2                    EQU        5                    ;2-byte Japanese Katakana
  524.  
  525. smTransGana2                    EQU        7                    ;2-byte Japanese Hiragana (no 1-byte Hiragana)
  526. smTransHangul2                    EQU        8                    ;2-byte Korean Hangul
  527. smTransJamo2                    EQU        9                    ;2-byte Korean Jamo
  528. smTransBopomofo2                EQU        10                    ;2-byte Chinese Bopomofo
  529.                                                             ; TransliterateText target modifiers 
  530. smTransLower                    EQU        $4000                ;target becomes lowercase
  531. smTransUpper                    EQU        $8000                ;target becomes uppercase
  532.                                                             ; TransliterateText resource format numbers 
  533. smTransRuleBaseFormat            EQU        1                    ;Rule based trsl resource format 
  534. smTransHangulFormat                EQU        2                    ;Table based Hangul trsl resource format
  535.                                                             ; TransliterateText property flags 
  536. smTransPreDoubleByting            EQU        1                    ;Convert all text to double byte before transliteration
  537. smTransPreLowerCasing            EQU        2                    ;Convert all text to lower case before transliteration
  538.  
  539.                                                             ; TransliterateText source mask - general 
  540. smMaskAll                        EQU        $FFFFFFFF            ;Convert all text
  541.                                                             ; TransliterateText source masks 
  542. smMaskAscii                        EQU        $00000001            ;2^smTransAscii
  543. smMaskNative                    EQU        $00000002            ;2^smTransNative
  544.                                                             ; TransliterateText source masks for two-byte scripts 
  545. smMaskAscii1                    EQU        $00000004            ;2^smTransAscii1
  546. smMaskAscii2                    EQU        $00000008            ;2^smTransAscii2
  547. smMaskKana1                        EQU        $00000010            ;2^smTransKana1
  548. smMaskKana2                        EQU        $00000020            ;2^smTransKana2
  549. smMaskGana2                        EQU        $00000080            ;2^smTransGana2
  550. smMaskHangul2                    EQU        $00000100            ;2^smTransHangul2
  551. smMaskJamo2                        EQU        $00000200            ;2^smTransJamo2
  552. smMaskBopomofo2                    EQU        $00000400            ;2^smTransBopomofo2
  553.  
  554.                                                             ; Result values from GetScriptManagerVariable and SetScriptManagerVariable calls. 
  555. smNotInstalled                    EQU        0                    ;routine not available in script
  556. smBadVerb                        EQU        -1                    ;Bad verb passed to a routine
  557. smBadScript                        EQU        -2                    ;Bad script code passed to a routine
  558.  
  559.                                                             ; Values for script redraw flag. 
  560. smRedrawChar                    EQU        0                    ;Redraw character only
  561. smRedrawWord                    EQU        1                    ;Redraw entire word (2-byte systems)
  562. smRedrawLine                    EQU        -1                    ;Redraw entire line (bidirectional systems)
  563.  
  564.                                                             ; GetScriptManagerVariable and SetScriptManagerVariable verbs 
  565. smVersion                        EQU        0                    ;Script Manager version number
  566. smMunged                        EQU        2                    ;Globals change count
  567. smEnabled                        EQU        4                    ;Count of enabled scripts, incl Roman
  568. smBidirect                        EQU        6                    ;At least one bidirectional script
  569. smFontForce                        EQU        8                    ;Force font flag
  570. smIntlForce                        EQU        10                    ;Force intl flag
  571. smForced                        EQU        12                    ;Script was forced to system script
  572. smDefault                        EQU        14                    ;Script was defaulted to Roman script
  573. smPrint                            EQU        16                    ;Printer action routine
  574. smSysScript                        EQU        18                    ;System script
  575. smLastScript                    EQU        20                    ;Last keyboard script
  576. smKeyScript                        EQU        22                    ;Keyboard script
  577. smSysRef                        EQU        24                    ;System folder refNum
  578. smKeyCache                        EQU        26                    ;obsolete
  579. smKeySwap                        EQU        28                    ;Swapping table handle
  580. smGenFlags                        EQU        30                    ;General flags long
  581. smOverride                        EQU        32                    ;Script override flags
  582. smCharPortion                    EQU        34                    ;Ch vs SpExtra proportion
  583.                                                             ; New for System 7.0: 
  584. smDoubleByte                    EQU        36                    ;Flag for double-byte script installed
  585. smKCHRCache                        EQU        38                    ;Returns pointer to KCHR cache
  586. smRegionCode                    EQU        40                    ;Returns current region code (verXxx)
  587. smKeyDisableState                EQU        42                    ;Returns current keyboard disable state
  588.  
  589.                                                             ; GetScriptVariable and SetScriptVariable verbs. 
  590.                                                             ; Note: Verbs private to script systems are negative, while 
  591.                                                             ; those general across script systems are non-negative. 
  592. smScriptVersion                    EQU        0                    ;Script software version
  593. smScriptMunged                    EQU        2                    ;Script entry changed count
  594. smScriptEnabled                    EQU        4                    ;Script enabled flag
  595. smScriptRight                    EQU        6                    ;Right to left flag
  596. smScriptJust                    EQU        8                    ;Justification flag
  597. smScriptRedraw                    EQU        10                    ;Word redraw flag
  598. smScriptSysFond                    EQU        12                    ;Preferred system font
  599. smScriptAppFond                    EQU        14                    ;Preferred Application font
  600. smScriptBundle                    EQU        16                    ;Beginning of itlb verbs
  601. smScriptNumber                    EQU        16                    ;Script itl0 id
  602. smScriptDate                    EQU        18                    ;Script itl1 id
  603. smScriptSort                    EQU        20                    ;Script itl2 id
  604. smScriptFlags                    EQU        22                    ;flags word
  605. smScriptToken                    EQU        24                    ;Script itl4 id
  606. smScriptEncoding                EQU        26                    ;id of optional itl5, if present
  607. smScriptLang                    EQU        28                    ;Current language for script
  608.  
  609. smScriptNumDate                    EQU        30                    ;Script Number/Date formats.
  610. smScriptKeys                    EQU        32                    ;Script KCHR id
  611. smScriptIcon                    EQU        34                    ;ID # of SICN or kcs#/kcs4/kcs8 suite
  612. smScriptPrint                    EQU        36                    ;Script printer action routine
  613. smScriptTrap                    EQU        38                    ;Trap entry pointer
  614. smScriptCreator                    EQU        40                    ;Script file creator
  615. smScriptFile                    EQU        42                    ;Script file name
  616. smScriptName                    EQU        44                    ;Script name
  617.                                                             ; There is a hole here for old Kanji private verbs 46-76 
  618.                                                             ; New for System 7.0: 
  619. smScriptMonoFondSize            EQU        78                    ;default monospace FOND (hi) & size (lo)
  620. smScriptPrefFondSize            EQU        80                    ;preferred FOND (hi) & size (lo)
  621. smScriptSmallFondSize            EQU        82                    ;default small FOND (hi) & size (lo)
  622. smScriptSysFondSize                EQU        84                    ;default system FOND (hi) & size (lo)
  623. smScriptAppFondSize                EQU        86                    ;default app FOND (hi) & size (lo)
  624. smScriptHelpFondSize            EQU        88                    ;default Help Mgr FOND (hi) & size (lo)
  625. smScriptValidStyles                EQU        90                    ;mask of valid styles for script
  626. smScriptAliasStyle                EQU        92                    ;style (set) to use for aliases
  627. ;  special negative verbs for Get/SetScriptVariable that were associated with WorldScriptI 
  628. ;  move them here to be public 
  629.  
  630.                                                             ; WorldScript private verbs 
  631. smLayoutCache                    EQU        -309                ; HiWrd(param) is # entries, LoWrd is max input length
  632. smOldVerbSupport                EQU        -311                ; param is added to old verbs to map to WSI verb
  633. smSetKashidas                    EQU        -291                ; param is ON or OFF, old verb = -36
  634. smSetKashProp                    EQU        -287                ; param is kashida proportion, old verb = -32
  635. smScriptSysBase                    EQU        -281                ; param is associated font to use w/ system font (old verb = -26)
  636. smScriptAppBase                    EQU        -283                ; param is associated font to use w/ app font (old verb = -28)
  637. smScriptFntBase                    EQU        -285                ; param is associated font to use w/ all other fonts (old verb = -30)
  638. smScriptLigatures                EQU        -263                ; old verb = -8
  639. smScriptNumbers                    EQU        -267                ; old verb = -12
  640.  
  641.                                                             ; Special script code values for International Utilities 
  642. iuSystemScript                    EQU        -1                    ; <obsolete>  system script 
  643. iuCurrentScript                    EQU        -2                    ; <obsolete>  current script (for font of grafPort) 
  644.  
  645.                                                             ; Negative verbs for KeyScript 
  646. smKeyNextScript                    EQU        -1                    ; Switch to next available script 
  647. smKeySysScript                    EQU        -2                    ; Switch to the system script 
  648. smKeySwapScript                    EQU        -3                    ; Switch to previously-used script 
  649.                                                             ; New for System 7.0: 
  650. smKeyNextKybd                    EQU        -4                    ; Switch to next keyboard in current keyscript 
  651. smKeySwapKybd                    EQU        -5                    ; Switch to previously-used keyboard in current keyscript 
  652. smKeyDisableKybds                EQU        -6                    ; Disable keyboards not in system or Roman script 
  653. smKeyEnableKybds                EQU        -7                    ; Re-enable keyboards for all enabled scripts 
  654. smKeyToggleInline                EQU        -8                    ; Toggle inline input for current keyscript 
  655. smKeyToggleDirection            EQU        -9                    ; Toggle default line direction (TESysJust) 
  656. smKeyNextInputMethod            EQU        -10                    ; Switch to next input method in current keyscript 
  657. smKeySwapInputMethod            EQU        -11                    ; Switch to last-used input method in current keyscript 
  658. smKeyDisableKybdSwitch            EQU        -12                    ; Disable switching from the current keyboard 
  659. smKeySetDirLeftRight            EQU        -15                    ; Set default line dir to left-right, align left 
  660. smKeySetDirRightLeft            EQU        -16                    ; Set default line dir to right-left, align right 
  661. smKeyRoman                        EQU        -17                    ; Set keyscript to Roman. Does nothing if Roman-only system, unlike KeyScript(smRoman) which forces an update to current default Roman keyboard 
  662. ;  Optional font and keyboard script synchronization 
  663.  
  664.                                                             ; One more flag in the smGenFlags long. 
  665. smfDisableKeyScriptSync            EQU        27                    ;Disable font and keyboard script synchronization
  666.  
  667.                                                             ; We should define masks, too. 
  668. smfDisableKeyScriptSyncMask        EQU        $08000000            ;Disable font and keyboard script synchronization mask
  669.  
  670.                                                             ; Force keyboard script switching flag and mask for zero and positive KeyScript verbs 
  671. smKeyForceKeyScriptBit            EQU        7                    ; Force keyboard script switching flag 
  672. smKeyForceKeyScriptMask            EQU        $80                    ; its mask 
  673.  
  674.                                                             ; Bits in the smScriptFlags word 
  675.                                                             ;  (bits above 8 are non-static) 
  676. smsfIntellCP                    EQU        0                    ;Script has intelligent cut & paste
  677. smsfSingByte                    EQU        1                    ;Script has only single bytes
  678. smsfNatCase                        EQU        2                    ;Native chars have upper & lower case
  679. smsfContext                        EQU        3                    ;Script is contextual
  680. smsfNoForceFont                    EQU        4                    ;Script will not force characters
  681. smsfB0Digits                    EQU        5                    ;Script has alternate digits at B0-B9
  682. smsfAutoInit                    EQU        6                    ;Auto initialize the script
  683. smsfUnivExt                        EQU        7                    ;Script is handled by universal extension
  684. smsfSynchUnstyledTE                EQU        8                    ;Script synchronizes for unstyled TE
  685. smsfForms                        EQU        13                    ;Uses contextual forms for letters
  686. smsfLigatures                    EQU        14                    ;Uses contextual ligatures
  687. smsfReverse                        EQU        15                    ;Reverses native text, right-left
  688.                                                             ; Bits in the smGenFlags long. 
  689.                                                             ; First (high-order) byte is set from itlc flags byte. 
  690. smfShowIcon                        EQU        31                    ;Show icon even if only one script
  691. smfDualCaret                    EQU        30                    ;Use dual caret for mixed direction text
  692. smfNameTagEnab                    EQU        29                    ;Reserved for internal use
  693. smfUseAssocFontInfo                EQU        28                    ;Use the associated font info for FontMetrics calls <48>
  694.  
  695.                                                             ; Roman script constants 
  696.                                                             ; The following are here for backward compatibility, but should not be used. 
  697.                                                             ; This information should be obtained using GetScript. 
  698. romanSysFond                    EQU        $3FFF                ;system font id number
  699. romanAppFond                    EQU        3                    ;application font id number
  700. romanFlags                        EQU        $0007                ;roman settings
  701.                                                             ; Script Manager font equates. 
  702. smFondStart                        EQU        $4000                ;start from 16K
  703. smFondEnd                        EQU        $C000                ;past end of range at 48K
  704.                                                             ; Miscellaneous font equates. 
  705. smUprHalfCharSet                EQU        $80                    ;first char code in top half of std char set
  706.  
  707.                                                             ; Character Set Extensions 
  708. diaeresisUprY                    EQU        $D9
  709. fraction                        EQU        $DA
  710. intlCurrency                    EQU        $DB
  711. leftSingGuillemet                EQU        $DC
  712. rightSingGuillemet                EQU        $DD
  713. fiLigature                        EQU        $DE
  714. flLigature                        EQU        $DF
  715. dblDagger                        EQU        $E0
  716. centeredDot                        EQU        $E1
  717. baseSingQuote                    EQU        $E2
  718. baseDblQuote                    EQU        $E3
  719. perThousand                        EQU        $E4
  720. circumflexUprA                    EQU        $E5
  721. circumflexUprE                    EQU        $E6
  722. acuteUprA                        EQU        $E7
  723. diaeresisUprE                    EQU        $E8
  724. graveUprE                        EQU        $E9
  725. acuteUprI                        EQU        $EA
  726. circumflexUprI                    EQU        $EB
  727. diaeresisUprI                    EQU        $EC
  728. graveUprI                        EQU        $ED
  729. acuteUprO                        EQU        $EE
  730. circumflexUprO                    EQU        $EF
  731. appleLogo                        EQU        $F0
  732. graveUprO                        EQU        $F1
  733. acuteUprU                        EQU        $F2
  734. circumflexUprU                    EQU        $F3
  735. graveUprU                        EQU        $F4
  736. dotlessLwrI                        EQU        $F5
  737. circumflex                        EQU        $F6
  738. tilde                            EQU        $F7
  739. macron                            EQU        $F8
  740. breveMark                        EQU        $F9
  741. overDot                            EQU        $FA
  742. ringMark                        EQU        $FB
  743. cedilla                            EQU        $FC
  744. doubleAcute                        EQU        $FD
  745. ogonek                            EQU        $FE
  746. hachek                            EQU        $FF
  747.  
  748.                                                             ; ScriptTokenType values 
  749. tokenIntl                        EQU        4                    ;the itl resource number of the tokenizer
  750. tokenEmpty                        EQU        -1                    ;used internally as an empty flag
  751.  
  752. tokenUnknown                    EQU        0                    ;chars that do not match a defined token type
  753. tokenWhite                        EQU        1                    ;white space
  754. tokenLeftLit                    EQU        2                    ;literal begin
  755. tokenRightLit                    EQU        3                    ;literal end
  756. tokenAlpha                        EQU        4                    ;alphabetic
  757. tokenNumeric                    EQU        5                    ;numeric
  758. tokenNewLine                    EQU        6                    ;new line
  759. tokenLeftComment                EQU        7                    ;open comment
  760. tokenRightComment                EQU        8                    ;close comment
  761. tokenLiteral                    EQU        9                    ;literal
  762. tokenEscape                        EQU        10                    ;character escape (e.g. '\' in "\n", "\t")
  763. tokenAltNum                        EQU        11                    ;alternate number (e.g. $B0-B9 in Arabic,Hebrew)
  764. tokenRealNum                    EQU        12                    ;real number
  765. tokenAltReal                    EQU        13                    ;alternate real number
  766. tokenReserve1                    EQU        14                    ;reserved
  767. tokenReserve2                    EQU        15                    ;reserved
  768. tokenLeftParen                    EQU        16                    ;open parenthesis
  769. tokenRightParen                    EQU        17                    ;close parenthesis
  770. tokenLeftBracket                EQU        18                    ;open square bracket
  771. tokenRightBracket                EQU        19                    ;close square bracket
  772.  
  773. tokenLeftCurly                    EQU        20                    ;open curly bracket
  774. tokenRightCurly                    EQU        21                    ;close curly bracket
  775. tokenLeftEnclose                EQU        22                    ;open guillemet
  776. tokenRightEnclose                EQU        23                    ;close guillemet
  777. tokenPlus                        EQU        24
  778. tokenMinus                        EQU        25
  779. tokenAsterisk                    EQU        26                    ;times/multiply
  780. tokenDivide                        EQU        27
  781. tokenPlusMinus                    EQU        28                    ;plus or minus symbol
  782. tokenSlash                        EQU        29
  783. tokenBackSlash                    EQU        30
  784. tokenLess                        EQU        31                    ;less than symbol
  785. tokenGreat                        EQU        32                    ;greater than symbol
  786. tokenEqual                        EQU        33
  787. tokenLessEqual2                    EQU        34                    ;less than or equal, 2 characters (e.g. <=)
  788. tokenLessEqual1                    EQU        35                    ;less than or equal, 1 character
  789. tokenGreatEqual2                EQU        36                    ;greater than or equal, 2 characters (e.g. >=)
  790. tokenGreatEqual1                EQU        37                    ;greater than or equal, 1 character
  791. token2Equal                        EQU        38                    ;double equal (e.g. ==)
  792. tokenColonEqual                    EQU        39                    ;colon equal
  793.  
  794. tokenNotEqual                    EQU        40                    ;not equal, 1 character
  795. tokenLessGreat                    EQU        41                    ;less/greater, Pascal not equal (e.g. <>)
  796. tokenExclamEqual                EQU        42                    ;exclamation equal, C not equal (e.g. !=)
  797. tokenExclam                        EQU        43                    ;exclamation point
  798. tokenTilde                        EQU        44                    ;centered tilde
  799. tokenComma                        EQU        45
  800. tokenPeriod                        EQU        46
  801. tokenLeft2Quote                    EQU        47                    ;open double quote
  802. tokenRight2Quote                EQU        48                    ;close double quote
  803. tokenLeft1Quote                    EQU        49                    ;open single quote
  804. tokenRight1Quote                EQU        50                    ;close single quote
  805. token2Quote                        EQU        51                    ;double quote
  806. token1Quote                        EQU        52                    ;single quote
  807. tokenSemicolon                    EQU        53
  808. tokenPercent                    EQU        54
  809. tokenCaret                        EQU        55
  810. tokenUnderline                    EQU        56
  811. tokenAmpersand                    EQU        57
  812. tokenAtSign                        EQU        58
  813. tokenBar                        EQU        59                    ;vertical bar
  814.  
  815. tokenQuestion                    EQU        60
  816. tokenPi                            EQU        61                    ;lower-case pi
  817. tokenRoot                        EQU        62                    ;square root symbol
  818. tokenSigma                        EQU        63                    ;capital sigma
  819. tokenIntegral                    EQU        64                    ;integral sign
  820. tokenMicro                        EQU        65
  821. tokenCapPi                        EQU        66                    ;capital pi
  822. tokenInfinity                    EQU        67
  823. tokenColon                        EQU        68
  824. tokenHash                        EQU        69                    ;e.g. #
  825. tokenDollar                        EQU        70
  826. tokenNoBreakSpace                EQU        71                    ;non-breaking space
  827. tokenFraction                    EQU        72
  828. tokenIntlCurrency                EQU        73
  829. tokenLeftSingGuillemet            EQU        74
  830. tokenRightSingGuillemet            EQU        75
  831. tokenPerThousand                EQU        76
  832. tokenEllipsis                    EQU        77
  833. tokenCenterDot                    EQU        78
  834. tokenNil                        EQU        127
  835.  
  836. delimPad                        EQU        -2                    ; obsolete, misspelled token names kept for backward compatibility 
  837. tokenTilda                        EQU        44
  838. tokenCarat                        EQU        55
  839.  
  840.                                                             ; Table selectors for GetItlTable 
  841. smWordSelectTable                EQU        0                    ; get word select break table from 'itl2' 
  842. smWordWrapTable                    EQU        1                    ; get word wrap break table from 'itl2' 
  843. smNumberPartsTable                EQU        2                    ; get default number parts table from 'itl4' 
  844. smUnTokenTable                    EQU        3                    ; get unToken table from 'itl4' 
  845. smWhiteSpaceList                EQU        4                    ; get white space list from 'itl4' 
  846. iuWordSelectTable                EQU        0                    ; <obsolete>  get word select break table from 'itl2' 
  847. iuWordWrapTable                    EQU        1                    ; <obsolete>  get word wrap break table from 'itl2' 
  848. iuNumberPartsTable                EQU        2                    ; <obsolete>  get default number parts table from 'itl4' 
  849. iuUnTokenTable                    EQU        3                    ; <obsolete>  get unToken table from 'itl4' 
  850. iuWhiteSpaceList                EQU        4                    ; <obsolete>  get white space list from 'itl4' 
  851. ;  end of stuff moved from Packages.h 
  852.  
  853. tokenOK                            EQU        0                    ; TokenResults 
  854. tokenOverflow                    EQU        1                    ; TokenResults 
  855. stringOverflow                    EQU        2                    ; TokenResults 
  856. badDelim                        EQU        3                    ; TokenResults 
  857. badEnding                        EQU        4                    ; TokenResults 
  858. crash                            EQU        5                    ; TokenResults 
  859. ; typedef SInt8                         TokenResults
  860.  
  861. CharByteTable            RECORD 0
  862. elements                 ds.b    256
  863. sizeof                     EQU *                    ; size:   $100 (256)
  864.                         ENDR
  865.  
  866.  
  867. ;  "TokenType" was renamed to "ScriptTokenType" because of a name collision in QuickTime 3.0 on other OS's
  868. ; typedef short                         ScriptTokenType
  869.  
  870.     IF TARGET_OS_MAC THEN
  871. ; typedef ScriptTokenType                 TokenType
  872.  
  873.     ENDIF    ; TARGET_OS_MAC
  874. DelimType                RECORD 0
  875. elements                 ds.w    2
  876. sizeof                     EQU *                    ; size:   $4 (4)
  877.                         ENDR
  878.  
  879.  
  880. CommentType                RECORD 0
  881. elements                 ds.w    4
  882. sizeof                     EQU *                    ; size:   $8 (8)
  883.                         ENDR
  884.  
  885.  
  886. TokenRec                RECORD 0
  887. theToken                 ds.w    1                ; offset: $0 (0)
  888. position                 ds.l    1                ; offset: $2 (2)        ; pointer into original source
  889. length                     ds.l    1                ; offset: $6 (6)        ; length of text in original source
  890. stringPosition             ds.l    1                ; offset: $A (10)        ; Pascal/C string copy of identifier
  891. sizeof                     EQU *                    ; size:   $E (14)
  892.                         ENDR
  893. ; typedef struct TokenRec *                TokenRecPtr
  894.  
  895. TokenBlock                RECORD 0
  896. source                     ds.l    1                ; offset: $0 (0)        ; pointer to stream of characters
  897. sourceLength             ds.l    1                ; offset: $4 (4)        ; length of source stream
  898. tokenList                 ds.l    1                ; offset: $8 (8)        ; pointer to array of tokens
  899. tokenLength                 ds.l    1                ; offset: $C (12)        ; maximum length of TokenList
  900. tokenCount                 ds.l    1                ; offset: $10 (16)        ; number tokens generated by tokenizer
  901. stringList                 ds.l    1                ; offset: $14 (20)        ; pointer to stream of identifiers
  902. stringLength             ds.l    1                ; offset: $18 (24)        ; length of string list
  903. stringCount                 ds.l    1                ; offset: $1C (28)        ; number of bytes currently used
  904. doString                 ds.b    1                ; offset: $20 (32)        ; make strings & put into StringList
  905. doAppend                 ds.b    1                ; offset: $21 (33)        ; append to TokenList rather than replace
  906. doAlphanumeric             ds.b    1                ; offset: $22 (34)        ; identifiers may include numeric
  907. doNest                     ds.b    1                ; offset: $23 (35)        ; do comments nest?
  908. leftDelims                 ds.w    2                ; offset: $24 (36)
  909. rightDelims                 ds.w    2                ; offset: $28 (40)
  910. leftComment                 ds.w    4                ; offset: $2C (44)
  911. rightComment             ds.w    4                ; offset: $34 (52)
  912. escapeCode                 ds.w    1                ; offset: $3C (60)        ; escape symbol code
  913. decimalCode                 ds.w    1                ; offset: $3E (62)
  914. itlResource                 ds.l    1                ; offset: $40 (64)        ; handle to itl4 resource of current script
  915. reserved                 ds.l    8                ; offset: $44 (68)        ; must be zero!
  916. sizeof                     EQU *                    ; size:   $64 (100)
  917.                         ENDR
  918. ; typedef struct TokenBlock *            TokenBlockPtr
  919.  
  920. ;
  921. ; pascal short GetSysDirection(void)
  922. ;
  923.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  924.         Macro
  925.         _GetSysDirection      &dest=(sp)
  926.             move.w            $0BAC,&dest
  927.         EndM
  928.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  929.         IMPORT_CFM_FUNCTION GetSysDirection
  930.     ENDIF
  931.  
  932. ;
  933. ; pascal void SetSysDirection(short value)
  934. ;
  935.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  936.         Macro
  937.         _SetSysDirection      &src=(sp)+
  938.             move.w            &src,$0BAC
  939.         EndM
  940.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  941.         IMPORT_CFM_FUNCTION SetSysDirection
  942.     ENDIF
  943.  
  944. ;
  945. ; pascal short FontScript(void )
  946. ;
  947.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  948.         Macro
  949.         _FontScript
  950.             move.l              #$82000000,-(sp)
  951.             dc.w                $A8B5
  952.         EndM
  953.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  954.         IMPORT_CFM_FUNCTION FontScript
  955.     ENDIF
  956.  
  957. ;
  958. ; pascal short IntlScript(void )
  959. ;
  960.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  961.         Macro
  962.         _IntlScript
  963.             move.l              #$82000002,-(sp)
  964.             dc.w                $A8B5
  965.         EndM
  966.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  967.         IMPORT_CFM_FUNCTION IntlScript
  968.     ENDIF
  969.  
  970. ;
  971. ; pascal void KeyScript(short code)
  972. ;
  973.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  974.         Macro
  975.         _KeyScript
  976.             move.l              #$80020004,-(sp)
  977.             dc.w                $A8B5
  978.         EndM
  979.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  980.         IMPORT_CFM_FUNCTION KeyScript
  981.     ENDIF
  982.  
  983. ;
  984. ; pascal Boolean IsCmdChar(const EventRecord *event, short test)
  985. ;
  986.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  987.         Macro
  988.         _IsCmdChar
  989.             move.l              #$8206FFD0,-(sp)
  990.             dc.w                $A8B5
  991.         EndM
  992.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  993.         IMPORT_CFM_FUNCTION IsCmdChar
  994.     ENDIF
  995.  
  996. ;
  997. ; pascal short FontToScript(short fontNumber)
  998. ;
  999.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1000.         Macro
  1001.         _FontToScript
  1002.             move.l              #$82020006,-(sp)
  1003.             dc.w                $A8B5
  1004.         EndM
  1005.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1006.         IMPORT_CFM_FUNCTION FontToScript
  1007.     ENDIF
  1008.  
  1009. ;
  1010. ; pascal long GetScriptManagerVariable(short selector)
  1011. ;
  1012.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1013.         Macro
  1014.         _GetScriptManagerVariable
  1015.             move.l              #$84020008,-(sp)
  1016.             dc.w                $A8B5
  1017.         EndM
  1018.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1019.         IMPORT_CFM_FUNCTION GetScriptManagerVariable
  1020.     ENDIF
  1021.  
  1022. ;
  1023. ; pascal OSErr SetScriptManagerVariable(short selector, long param)
  1024. ;
  1025.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1026.         Macro
  1027.         _SetScriptManagerVariable
  1028.             move.l              #$8206000A,-(sp)
  1029.             dc.w                $A8B5
  1030.         EndM
  1031.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1032.         IMPORT_CFM_FUNCTION SetScriptManagerVariable
  1033.     ENDIF
  1034.  
  1035. ;
  1036. ; pascal long GetScriptVariable(short script, short selector)
  1037. ;
  1038.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1039.         Macro
  1040.         _GetScriptVariable
  1041.             move.l              #$8404000C,-(sp)
  1042.             dc.w                $A8B5
  1043.         EndM
  1044.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1045.         IMPORT_CFM_FUNCTION GetScriptVariable
  1046.     ENDIF
  1047.  
  1048. ;
  1049. ; pascal OSErr SetScriptVariable(short script, short selector, long param)
  1050. ;
  1051.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1052.         Macro
  1053.         _SetScriptVariable
  1054.             move.l              #$8208000E,-(sp)
  1055.             dc.w                $A8B5
  1056.         EndM
  1057.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1058.         IMPORT_CFM_FUNCTION SetScriptVariable
  1059.     ENDIF
  1060.  
  1061. ;
  1062. ; pascal short CharacterByteType(Ptr textBuf, short textOffset, ScriptCode script)
  1063. ;
  1064.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1065.         Macro
  1066.         _CharacterByteType
  1067.             move.l              #$C2060010,-(sp)
  1068.             dc.w                $A8B5
  1069.         EndM
  1070.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1071.         IMPORT_CFM_FUNCTION CharacterByteType
  1072.     ENDIF
  1073.  
  1074. ;
  1075. ; pascal short CharacterType(Ptr textBuf, short textOffset, ScriptCode script)
  1076. ;
  1077.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1078.         Macro
  1079.         _CharacterType
  1080.             move.l              #$C2060012,-(sp)
  1081.             dc.w                $A8B5
  1082.         EndM
  1083.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1084.         IMPORT_CFM_FUNCTION CharacterType
  1085.     ENDIF
  1086.  
  1087. ;
  1088. ; pascal OSErr TransliterateText(Handle srcHandle, Handle dstHandle, short target, long srcMask, ScriptCode script)
  1089. ;
  1090.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1091.         Macro
  1092.         _TransliterateText
  1093.             move.l              #$C20E0018,-(sp)
  1094.             dc.w                $A8B5
  1095.         EndM
  1096.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1097.         IMPORT_CFM_FUNCTION TransliterateText
  1098.     ENDIF
  1099.  
  1100. ;
  1101. ; pascal Boolean FillParseTable(CharByteTable table, ScriptCode script)
  1102. ;
  1103.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1104.         Macro
  1105.         _FillParseTable
  1106.             move.l              #$C2040022,-(sp)
  1107.             dc.w                $A8B5
  1108.         EndM
  1109.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1110.         IMPORT_CFM_FUNCTION FillParseTable
  1111.     ENDIF
  1112.  
  1113. ;
  1114. ; pascal Handle GetIntlResource(short theID)
  1115. ;
  1116.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1117.         Macro
  1118.         _GetIntlResource
  1119.             move.w              #$0006,-(sp)
  1120.             dc.w                $A9ED
  1121.         EndM
  1122.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1123.         IMPORT_CFM_FUNCTION GetIntlResource
  1124.     ENDIF
  1125.  
  1126. ;
  1127. ; pascal void ClearIntlResourceCache(void )
  1128. ;
  1129.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1130.         Macro
  1131.         _ClearIntlResourceCache
  1132.             move.w              #$0018,-(sp)
  1133.             dc.w                $A9ED
  1134.         EndM
  1135.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1136.         IMPORT_CFM_FUNCTION ClearIntlResourceCache
  1137.     ENDIF
  1138.  
  1139. ;
  1140. ; pascal void GetIntlResourceTable(ScriptCode script, short tableCode, Handle *itlHandle, long *offset, long *length)
  1141. ;
  1142.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1143.         Macro
  1144.         _GetIntlResourceTable
  1145.             move.w              #$0024,-(sp)
  1146.             dc.w                $A9ED
  1147.         EndM
  1148.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1149.         IMPORT_CFM_FUNCTION GetIntlResourceTable
  1150.     ENDIF
  1151.  
  1152. ;
  1153. ; pascal UniversalProcPtr GetScriptUtilityAddress(short selector, Boolean Before, ScriptCode script)
  1154. ;
  1155.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1156.         Macro
  1157.         _GetScriptUtilityAddress
  1158.             move.l              #$C4040038,-(sp)
  1159.             dc.w                $A8B5
  1160.         EndM
  1161.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1162.         IMPORT_CFM_FUNCTION GetScriptUtilityAddress
  1163.     ENDIF
  1164.  
  1165. ;
  1166. ; pascal void SetScriptUtilityAddress(short selector, Boolean Before, UniversalProcPtr routineAddr, ScriptCode script)
  1167. ;
  1168.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1169.         Macro
  1170.         _SetScriptUtilityAddress
  1171.             move.l              #$C008003A,-(sp)
  1172.             dc.w                $A8B5
  1173.         EndM
  1174.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1175.         IMPORT_CFM_FUNCTION SetScriptUtilityAddress
  1176.     ENDIF
  1177.  
  1178. ;
  1179. ; pascal UniversalProcPtr GetScriptQDPatchAddress(short trapNum, Boolean Before, Boolean forPrinting, ScriptCode script)
  1180. ;
  1181.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1182.         Macro
  1183.         _GetScriptQDPatchAddress
  1184.             move.l              #$C406003C,-(sp)
  1185.             dc.w                $A8B5
  1186.         EndM
  1187.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1188.         IMPORT_CFM_FUNCTION GetScriptQDPatchAddress
  1189.     ENDIF
  1190.  
  1191. ;
  1192. ; pascal void SetScriptQDPatchAddress(short trapNum, Boolean Before, Boolean forPrinting, UniversalProcPtr routineAddr, ScriptCode script)
  1193. ;
  1194.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1195.         Macro
  1196.         _SetScriptQDPatchAddress
  1197.             move.l              #$C00A003E,-(sp)
  1198.             dc.w                $A8B5
  1199.         EndM
  1200.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1201.         IMPORT_CFM_FUNCTION SetScriptQDPatchAddress
  1202.     ENDIF
  1203.  
  1204. ;
  1205. ; pascal void SetIntlResource(short refNum, short theID, Handle intlHandle)
  1206. ;
  1207.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1208.         Macro
  1209.         _SetIntlResource
  1210.             move.w              #$0008,-(sp)
  1211.             dc.w                $A9ED
  1212.         EndM
  1213.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1214.         IMPORT_CFM_FUNCTION SetIntlResource
  1215.     ENDIF
  1216.  
  1217. ;
  1218. ; pascal short CharByte(Ptr textBuf, short textOffset)
  1219. ;
  1220.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1221.         Macro
  1222.         _CharByte
  1223.             move.l              #$82060010,-(sp)
  1224.             dc.w                $A8B5
  1225.         EndM
  1226.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1227.         IMPORT_CFM_FUNCTION CharByte
  1228.     ENDIF
  1229.  
  1230. ;
  1231. ; pascal short CharType(Ptr textBuf, short textOffset)
  1232. ;
  1233.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1234.         Macro
  1235.         _CharType
  1236.             move.l              #$82060012,-(sp)
  1237.             dc.w                $A8B5
  1238.         EndM
  1239.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1240.         IMPORT_CFM_FUNCTION CharType
  1241.     ENDIF
  1242.  
  1243. ;
  1244. ; pascal OSErr Transliterate(Handle srcHandle, Handle dstHandle, short target, long srcMask)
  1245. ;
  1246.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1247.         Macro
  1248.         _Transliterate
  1249.             move.l              #$820E0018,-(sp)
  1250.             dc.w                $A8B5
  1251.         EndM
  1252.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1253.         IMPORT_CFM_FUNCTION Transliterate
  1254.     ENDIF
  1255.  
  1256. ;
  1257. ; pascal Boolean ParseTable(CharByteTable table)
  1258. ;
  1259.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1260.         Macro
  1261.         _ParseTable
  1262.             move.l              #$82040022,-(sp)
  1263.             dc.w                $A8B5
  1264.         EndM
  1265.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1266.         IMPORT_CFM_FUNCTION ParseTable
  1267.     ENDIF
  1268.  
  1269. ;
  1270. ; pascal TokenResults IntlTokenize(TokenBlockPtr tokenParam)
  1271. ;
  1272.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1273.         Macro
  1274.         _IntlTokenize
  1275.             move.l              #$8204FFFA,-(sp)
  1276.             dc.w                $A8B5
  1277.         EndM
  1278.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1279.         IMPORT_CFM_FUNCTION IntlTokenize
  1280.     ENDIF
  1281.  
  1282.     IF OLDROUTINENAMES THEN
  1283.     ENDIF    ; OLDROUTINENAMES
  1284.  
  1285.  
  1286.     ENDIF ; __SCRIPT__ 
  1287.  
  1288.